package com.oa.service;


import com.oa.bean.Emp;
import com.oa.utils.PageBean;
import org.hibernate.criterion.DetachedCriteria;

import java.util.List;

public interface EmpService {

    PageBean pageQuery(PageBean pageBean);

    void save(Emp emp);

    void departEmp(Emp emp);

    String checkCanDepart(Integer id);

    Emp beforeEditEmp(Integer id);

    boolean canDelImag(String lastpath);

    boolean restoreEmp(Emp model);

    List<Emp> findAllNames(DetachedCriteria dc);

    void updateEmp(Emp model);

    Emp findEmpById(Integer id);

    Integer validateLoginname(String loginname);
}
